package io.renren.modules.upload.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.upload.dao.AdministrativePenaltyRecordDao;
import io.renren.modules.upload.entity.AdministrativePenaltyRecordEntity;
import io.renren.modules.upload.service.AdministrativePenaltyRecordService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("administrativePenaltyRecordService")
public class AdministrativePenaltyRecordServiceImpl extends ServiceImpl<AdministrativePenaltyRecordDao, AdministrativePenaltyRecordEntity> implements AdministrativePenaltyRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AdministrativePenaltyRecordEntity> page = this.page(
                new Query<AdministrativePenaltyRecordEntity>().getPage(params),
                new QueryWrapper<AdministrativePenaltyRecordEntity>()
        );

        return new PageUtils(page);
    }

}